(function(define){define(function(){if(typeof window=="undefined")return{load:function(n,r,load){load()}};var head=document.getElementsByTagName("head")[0];var engine=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0;var useImportLoad=false;var useOnload=true;if(engine[1]||engine[7])useImportLoad=parseInt(engine[1])<6||parseInt(engine[7])<=9;else if(engine[2]||engine[8]||"WebkitAppearance"in document.documentElement.style)useOnload=false;else if(engine[4])useImportLoad=parseInt(engine[4])<18;var cssAPI={};cssAPI.pluginBuilder="./css-builder";var curStyle,curSheet;var createStyle=function(){curStyle=document.createElement("style");head.appendChild(curStyle);curSheet=curStyle.styleSheet||curStyle.sheet};var ieCnt=0;var ieLoads=[];var ieCurCallback;var createIeLoad=function(url){curSheet.addImport(url);curStyle.onload=function(){processIeLoad()};ieCnt++;if(ieCnt==31){createStyle();ieCnt=0}};var processIeLoad=function(){ieCurCallback();var nextLoad=ieLoads.shift();if(!nextLoad){ieCurCallback=null;return}ieCurCallback=nextLoad[1];createIeLoad(nextLoad[0])};var importLoad=function(url,callback){if(!curSheet||!curSheet.addImport)createStyle();if(curSheet&&curSheet.addImport){if(ieCurCallback){ieLoads.push([url,callback])}else{createIeLoad(url);ieCurCallback=callback}}else{curStyle.textContent="@import \""+url+"\";";var loadInterval=setInterval(function(){try{curStyle.sheet.cssRules;clearInterval(loadInterval);callback()}catch(e){}},10)}};let cssCached=[];function isLinkCached(url){var existingLinks=[].slice.call(document.querySelectorAll("link")).concat((window.sparta||{}).bundledCSS||[]);var cached=false;var matchCSSModule=/(?:components\/(?:utilities|modules)(?:\/[\w\d\.\_\-]*)*\/css\/)?[\w\d\.\_\-]*(?:\.scss)?\.css$/;var urlWoTimestamp=url.split("?_")[0];var found=urlWoTimestamp.match(matchCSSModule);if(!found)return;var cssFilename=found[0];var links=Array.from(document.querySelectorAll("link"));cached=cssCached.some(function(name){return name===cssFilename});if(cached)return cached;cached=links.some(function(l){var manifest=l.getAttribute("data-includes");if(!manifest)return false;manifest=JSON.parse(manifest);cssCached.push(manifest);if(manifest&&Array.isArray(manifest)){return manifest.some(function(name){return name.indexOf(cssFilename)>-1})}});if(cached)return cached;var pathname=location.pathname.split("/");pathname.pop();pathname=pathname.join("/");var urlLink=document.createElement("link");urlLink.href=url;return existingLinks.some(function(link){return link.href.indexOf(urlLink.href)>-1})}var linkLoad=function(url,callback){if(isLinkCached(url))return callback();var link=document.createElement("link");link.type="text/css";link.rel="stylesheet";if(useOnload)link.onload=function(){link.onload=function(){};setTimeout(callback,7)};else var loadInterval=setInterval(function(){for(var i=0;i